home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / patch / ppak25_1.lha / PhonePak_2.5InstallPPak < prev    next >
Text File  |  1994-06-01  |  13KB  |  331 lines

  1. ; PhonePak VFX Installation script
  2. ; $VER: PhonePak Install 2.5 (01-Jun-94)
  3.  
  4. ; Written for use with Commodore's Installer.
  5.  
  6. (set phonepak "PhonePak_2.5:")
  7. (set messages1 "Messages1:")
  8. (set messages2 "Messages2:")
  9. (set ppak "PPAK:")
  10.  
  11. ; ====================
  12. ; Install the libraries, devices, and other system files...
  13. ;
  14.  
  15. (if (askbool (prompt "Is this an A3000/A3000T with its original Buster chip?")
  16.              (choices "Yes" "No")
  17.              (default "No")
  18.              (help "The A3000 and A3000T have a defect which prevents DMA "
  19.                    "from functioning properly unless the original Buster "
  20.                    "chip is updated to revision 11 or greater.  If you have "
  21.                    "the original Buster chip, a different version of "
  22.                    "PhonePak.library will be installed and you must have a "
  23.                    "Zorro II memory board in your system in order for "
  24.                    "PhonePak to work properly.\n\n"))
  25.     (
  26.       (copyfiles (source (tackon phonepak "libs/PPak3000.library"))
  27.                  (dest "LIBS:")
  28.                  (confirm)
  29.                  (newname "PhonePak.library")
  30.                  (prompt "Shall I install the PhonePak.library into your LIBS: "
  31.                      "drawer?")
  32.                  (help "PhonePak.library is a collection of commonly used routines "
  33.                      "required by the PhonePak VFX software.\n\n"
  34.                      @copylib-help))
  35.     )
  36.     (
  37.       (copyfiles (source (tackon phonepak "libs/PPak2000.library"))
  38.                  (dest "LIBS:")
  39.                  (confirm)
  40.                  (newname "PhonePak.library")
  41.                  (prompt "Shall I install the PhonePak.library into your LIBS: "
  42.                      "drawer?")
  43.                  (help "PhonePak.library is a collection of commonly used routines "
  44.                      "required by the PhonePak VFX software.\n\n"
  45.                      @copylib-help))
  46.     ))
  47.  
  48. (copylib (source (tackon phonepak "devs/PhonePak.device"))
  49.          (dest "DEVS:")
  50.          (confirm)
  51.          (prompt "Shall I install the PhonePak.device into your DEVS: drawer?")
  52.          (help "PhonePak.device controls the PhonePak VFX hardware\n\n"
  53.                @copylib-help))
  54.  
  55. (copyfiles (source (tackon phonepak "devs/Printers/PPakFax"))
  56.            (dest "DEVS:Printers")
  57.            (confirm)
  58.            (prompt "Shall I install the PPakFax printer driver into your "
  59.                    "DEVS:Printers drawer?")
  60.            (help "The PPakFax printer driver allows you to fax "
  61.                  "directly from almost any standard Amiga application. To "
  62.                  "enable this, the printer driver must be placed in the "
  63.                  "DEVS:Printers drawer.\n\n"
  64.                  @copylib-help))
  65.  
  66. (copyfiles (source (tackon phonepak "fonts"))
  67.            (dest "FONTS:")
  68.            (fonts)
  69.            (all)
  70.            (confirm)
  71.            (prompt "Shall I install the fonts required by PhonePak VFX?")
  72.            (help "These fonts are provided for the text to fax conversion "
  73.                  "performed by the PhonePak VFX software. PhonePak.font is "
  74.                  "the default font used, and LGMono.font is an alternate "
  75.                  "fixed width font provided for your convenience.\n\n"
  76.                  @copyfiles-help))
  77.  
  78. (copyfiles (source (tackon phonepak "rexx"))
  79.            (dest "REXX:")
  80.            (all)
  81.            (confirm)
  82.            (prompt "Shall I install the PhonePak ARexx scripts?")
  83.            (help "These scripts provide useful examples of how to interact "
  84.                  "with LineMan using the ARexx programming language.  "
  85.                  "Message Forwarding uses the Forwarding.ppak script "
  86.                  "by default.\n\n"
  87.                  @copyfiles-help))
  88.  
  89. (set os_ver (/ (getversion) $0000FFFF))
  90. (if (>= os_ver 36)
  91.     (
  92.       (copyfiles (source (tackon phonepak "Prefs/Presets/PPakFax.pre"))
  93.                  (dest "SYS:Prefs/Presets")
  94.                  (confirm)
  95.                  (prompt "Shall I copy the PPakFax.pre presets file to the "
  96.                          "SYS:Prefs/Presets drawer?\n\n")
  97.                  (help "The PPakFax.pre file allows you to quickly set Prefs to "
  98.                        "use the PPakFax printer driver.\n\n"
  99.                        @copyfiles-help))
  100.       (copylib (source (tackon phonepak "c/SetPatchWTAM"))
  101.                (dest "C:")
  102.                (confirm)
  103.                (prompt "Shall I copy the SetPatchWTAM program to your C: directory?")
  104.                (help "The SetPatchWTAM program is a patch supplied by Commodore to "
  105.                      "fix a problem with font aspect ratios under Workbench 2.0.\n\n"
  106.                      @copylib-help))
  107.     )
  108. )
  109.  
  110. (copylib (source (tackon phonepak "libs/req.library"))
  111.          (dest "LIBS:")
  112.          (confirm)
  113.          (prompt "Shall I install req.library into your LIBS: drawer?")
  114.          (help "req.library provides some of the requesters used by "
  115.                "the PhonePak VFX software.\n\n"
  116.                @copylib-help))
  117.  
  118. (if (NOT (exists "S:PhonePak.config"))
  119.     (
  120.       (copyfiles (source (tackon phonepak "s/PhonePak.config"))
  121.                  (dest "S:"))
  122.     ))
  123.  
  124. ; ====================
  125. ; All libraries/system files are installed. Now install the software.
  126.  
  127. (set target (tackon @default-dest "PhonePak"))
  128.  
  129. (if (askbool (prompt "I am going to install the PhonePak VFX software and "
  130.                      "tools in:\n\n"
  131.                      target
  132.                      "\n\n"
  133.                      "Is this OK?")
  134.              (help "If this directory is OK, the directory will be created "
  135.                    "and the software will be installed.\n\n")
  136.              (choices "Yes" "No")
  137.              (default "Yes"))
  138.    (
  139.       (makedir target (infos))
  140.    )
  141.    (
  142.       (set target (askdir (prompt "In which directory should the PhonePak "
  143.                                   "software and tools be installed?")
  144.                                   (help @askdir-help)
  145.                                   (default @default-dest)))
  146.    ))
  147.  
  148. (makeassign "PPAK" target)
  149.  
  150. (copyfiles (source (tackon phonepak "c/LZ"))
  151.            (dest "RAM:")
  152.            (nogauge))
  153.  
  154. (working "Decompressing and installing PhonePak...")
  155. (run ("RAM:LZ -N x %s %s" (tackon phonepak "PhonePak.LHA")
  156.                            ppak))
  157.  
  158. (working "Decompressing and installing LineMan...")
  159. (run ("RAM:LZ -N x %s %s" (tackon phonepak "LineMan.LHA")
  160.                            ppak))
  161.  
  162. (working "Decompressing and installing PPakTools...")
  163. (run ("RAM:LZ -N x %s %s" (tackon phonepak "PPakTools.LHA")
  164.                            ppak))
  165.  
  166. ; === Copy databases if they don't already exist
  167.  
  168. (if (NOT (exists (tackon target "Demo.dat")))
  169.     (
  170.         (copyfiles (source phonepak)
  171.             (dest target)
  172.             (pattern "Demo.#?"))
  173.     ))
  174.  
  175. (if (NOT (exists (tackon target "AreaCodes.dat")))
  176.     (
  177.         (copyfiles (source phonepak)
  178.             (dest target)
  179.             (pattern "AreaCodes.#?"))
  180.     ))
  181.     
  182. ; === Install the 1.3 icons if the OS version is < 36.xx
  183.  
  184. (if (< os_ver 36)
  185.    (
  186.       (copyfiles (source (tackon phonepak "1.3_Icons"))
  187.                  (dest target)
  188.                  (all)
  189.                  (infos))
  190.    ))
  191.  
  192. ; === Install the default system messages from messages disk one
  193.  
  194. (set master (tackon target "(Master)"))
  195.  
  196. (if (askbool (prompt "Are you upgrading from a previous version of PhonePak?")
  197.              (help "If you are upgrading from a previous version of "
  198.                    "PhonePak, you must specify the directory where your "
  199.                    "system messages are located.  Only new system "
  200.                    "messages will be copied.")
  201.              (choices "Yes" "No")
  202.              (default "No"))
  203.    (
  204.       (set flag 1)
  205.       (set master (askdir (prompt "In which directory should new "
  206.                                   "system messages be installed?")
  207.                                   (help @askdir-help)
  208.                                   (default master)))
  209.    )
  210.    (
  211.       (set flag 0)
  212.       (makedir master)
  213.    ))
  214.  
  215. (makeassign "SYSMSG" master)
  216.  
  217. (if flag 0
  218.   (
  219.     (askdisk (dest "Messages1")
  220.          (prompt "Please insert the Messages1 disk in any drive")
  221.          (help "The Messages1 disk contains default system messages.\n\n"
  222.          @askdisk-help))
  223.  
  224.     (working "Decompressing and installing default system messages...")
  225.     (run ("RAM:LZ -m -N x %s %s/" (tackon messages1 "Messages.LHA")master))
  226.   )
  227. )
  228.  
  229. ; === Install the default system messages from messages disk two
  230.  
  231. (askdisk (dest "Messages2")
  232.          (prompt "Please insert the Messages2 disk in any drive")
  233.          (help "The Messages2 disk contains default system messages.\n\n"
  234.          @askdisk-help))
  235.  
  236. (if flag 0
  237.     (run ("RAM:LZ -m -N x %s %s/" (tackon messages2 "AuxMsgs.LHA") master))
  238. )
  239.  
  240. (run ("RAM:LZ -m -N x %s %s/" (tackon messages2 "Messages2.LHA") master))
  241.  
  242. (delete "RAM:LZ")
  243.  
  244. ; === Copy the documentation update files 
  245.  
  246. (copyfiles (source (tackon messages2 "Docs"))
  247.            (dest (tackon target "Docs"))
  248.            (all)
  249.            (infos)
  250.            (confirm)
  251.            (prompt "Which PhonePak 2.4 documentation files shall I install?")
  252.            (help "These files cover changes made to the PhonePak software "
  253.                  "since the version 1 manual was printed.  The files "
  254.                  "are available in both raw ASCII and formatted Final Copy II "
  255.                  "formats.\n\n"
  256.                  @copyfiles-help))
  257.  
  258. ; === Setup the default-dest so the user is informed where PhonePak was installed.
  259.  
  260. (set @default-dest target)
  261.  
  262. ; === Modify startup sequence.
  263.  
  264. (if (>= os_ver 36)
  265.    (
  266.     (onerror (message "Sorry, but either your startup-sequence was missing, "
  267.                       "or it is too non-standard for the Installer program to "
  268.                       "understand. You will have to make these modifications "
  269.                       "by hand.\n\n"
  270.                       "To patch the 2.0 font aspect ratio bug, add the "
  271.                       "following line to your S:User-Startup or "
  272.                       "Startup-Sequence:\n\n"
  273.                       "SetPatchWTAM >NIL:\n")
  274.              (message "To have PPAK: assigned to the directory in which "
  275.                       "PhonePak is installed, add the following line to your "
  276.                       "S:User-Startup or Startup-Sequence:\n\n"
  277.                       ("Assign PPAK: %s\n\n" target)
  278.                       "Note: This assignment is only required for the default "
  279.                       "system setup.")
  280.              (message "To have SYSMSG: assigned to the directory containing "
  281.                       "your system messages, add the following line to your "
  282.                       "S:User-Startup or Startup-Sequence:\n\n"
  283.                       ("Assign SYSMSG: %s\n\n" master))
  284.              (exit))
  285.     (startup "PhonePak VFX"
  286.              (prompt "Shall I modify your startup sequence to add the PPAK: "
  287.                      "and SYSMSG: assigns and to automatically execute SetPatchWTAM?")
  288.              (help "This will add the following lines to your S:User-Startup "
  289.                    "file:\n\n"
  290.                    "SetPatchWTAM >NIL:\n"
  291.                    ("Assign PPAK: %s\n" target)
  292.                    ("Assign SYSMSG: %s\n\n" master)
  293.                    "The PPAK: assign is only used by the default system setup. "
  294.                    "The SYSMSG: assign provides a path to your system "
  295.                    "messages, making the creation of multiple systems easier.\n\n"
  296.                    @startup-help)
  297.              (command ("SetPatchWTAM >NIL:\n"))
  298.              (command ("Assign PPAK: %s\n" target))
  299.              (command ("Assign SYSMSG: %s" master)))
  300.    )
  301.    (
  302.     (onerror (message "Sorry, but either your startup-sequence was missing, "
  303.                       "or it is too non-standard for the Installer program to "
  304.                       "understand. You will have to make this modification "
  305.                       "by hand.\n\n"
  306.                       "To have PPAK: assigned to the directory in which "
  307.                       "PhonePak is installed, add the following line to your "
  308.                       "S:User-Startup or Startup-Sequence:\n\n"
  309.                       ("Assign PPAK: %s\n\n" target)
  310.                       "Note: This assignment is only required for the default "
  311.                       "system setup.")
  312.              (message "To have SYSMSG: assigned to the directory containing "
  313.                       "your system messages, add the following line to your "
  314.                       "S:User-Startup or Startup-Sequence:\n\n"
  315.                       ("Assign SYSMSG: %s\n\n" master))
  316.              (exit))
  317.     (startup "PhonePak VFX"
  318.              (prompt "Shall I modify your startup sequence to add the PPAK: and SYSMSG: assigns?")
  319.              (help "This will add the following lines to your S:User-Startup file:\n\n"
  320.                    ("Assign PPAK: %s\n" target)
  321.                    ("Assign SYSMSG: %s\n\n" master)
  322.                    "The PPAK: assign is only used by the default system setup. "
  323.                    "The SYSMSG: assign provides a path to your system "
  324.                    "messages, making the creation of multiple systems easier.\n\n"
  325.                    @startup-help)
  326.              (command ("Assign PPAK: %s\n" target))
  327.              (command ("Assign SYSMSG: %s" master)))
  328.    ))
  329.